<!doctype html>
<html>
<head>
    <title>{$INI['system']['sitename']}</title>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width,initial-scale=1.0,maximum-scale=1.0,user-scalable=no">
    <link rel="stylesheet" href="/css/style.css">
    <link rel="stylesheet" href="/css/font-awesome.min-4.3.0.css">
	<script src="/js/jquery.min-2.1.3.js"></script>
	<script src="/js/touchslider_d35a525.js"></script>
	
</head>
<!--{include block_navigator_ev_s}-->
<style>
.header_city{
	width: 100%;
  max-width: 640px;
  height: 36px;
  position: fixed;
  top: 0;
  left: 50%;
  -webkit-transform: translate3d(-50%,0,0);
  transform: translate3d(-50%,0,0);
  overflow: hidden;
  background-color: #06c1ae;
  border-bottom: #21897d;
  -webkit-box-shadow: 0 0 4px rgba(0,0,0,.2);
  box-shadow: 0 0 4px rgba(0,0,0,.2);
  z-index:99999;
}
.nav-wrap-left {
  height: 36px;
  line-height: 36px;
}
a.react{
  display: block;
  color: inherit;
  height: 100%;
}
 .nav-city {
  line-height: 1;
  display: inline-block;
  vertical-align: middle;
  text-align: center;
  margin-right: 32px;
  margin-left: 32px;
  font-size: 16px;;
  color:#fff;
}
space {
  display: inline-block;
  width: .12rem;
}
.text-icon {
  font-family: base_icon;
  display: inline-block;
  vertical-align: middle;
  font-style: normal;
}
.icon-downarrow {
  position: relative;
  width:19px;
  height:32px;
}
.icon-downarrow:after {
  content: '';
  display: inline-block;
  position: relative;
  top: 2px;
  width: 10px;
  height: 10px;
  border-bottom: 2px solid #fff;
  border-left: 2px solid #fff;
  -webkit-transform: scaleX(0.7) rotateZ(-45deg);
  -moz-transform: scaleX(0.7) rotateZ(-45deg);
  -ms-transform: scaleX(0.7) rotateZ(-45deg);
}
#slider {
  height: 100%;
  overflow: hidden;
  margin: 10px 0;
}
#slider li {
  height: inherit;
}
.tuanc{  padding: 0 10px;}
#slider li a {
  display: block;
  padding: 0 10px;
  width: 100%;
  height: inherit;
}
</style>
<script src="http://res.wx.qq.com/open/js/jweixin-1.0.0.js"></script>
<script>
  wx.config({
    debug: false,
    appId: '{$signPackage[appId]}',
    timestamp: {$signPackage[timestamp]},
    nonceStr: '{$signPackage["nonceStr"]}',
    signature: '{$signPackage["signature"]}',
    jsApiList: [
      'onMenuShareTimeline','onMenuShareAppMessage'
    ]
  });

  wx.ready(function () {
		wx.onMenuShareTimeline({
			title: '{$INI[system][sitename]}{$city[name]}', // 分享标题
			link: '{$INI[system][wwwprefix]}?rmid={$mid}', // 分享链接
			imgUrl: '{$INI[system][wwwprefix]}static/css/i/logo.png', // 分享图标
			success: function () { 
				// 用户确认分享后执行的回调函数
			},
			cancel: function () { 
				// 用户取消分享后执行的回调函数
			}
		});
		
		wx.onMenuShareAppMessage({
			title: '{$INI[system][sitename]}{$city[name]}', // 分享标题
			desc: '需要您的加入', // 分享描述
			link: '{$INI[system][wwwprefix]}?rmid={$mid}', // 分享链接
			imgUrl: '{$INI[system][wwwprefix]}static/css/i/logo.png', // 分享图标
			type: '', // 分享类型,music、video或link，不填默认为link
			dataUrl: '', // 如果type是music或video，则要提供数据链接，默认为空
			success: function () { 
				// 用户确认分享后执行的回调函数
			},
			cancel: function () { 
				// 用户取消分享后执行的回调函数
			}
		});
  });
</script>
<body id="main">
    <div class="container">   
        <section class="main-view">
            <!--{if $news}-->
			<div class="tuanc">
				<ul  id="slider">
				<!--{loop $news $adnews}-->
				<li>
                <a href="{$adnews['detail']}"><img src="${team_image($adnews['image'])}"></a>
				</li>
				<!--{/loop}-->
				</ul>
            </div>
			<!--{/if}-->
			
            <div id="tuan" class="tuan" style="padding-top: 10px; display: block;">
                <div id="tuan_list">
					<!--{loop $teams_ev56_sql $tindex $oneev56}-->
                    <div class="tuan_g">
                        <a href="/team.php?id={$oneev56['id']}">
                            <div class="tuan_g_img">
                                <img src="${team_image($oneev56['image'])}">
                                <span class="tuan_mark tuan_mark2">
                                <b>${team_discount($oneev56)}折</b>
                                <span>{$oneev56['min_number']}人团</span>
                                </span>
                            </div>
                            <div class="tuan_g_info">
                                <p class="tuan_g_name">{$oneev56['title']}</p>
                                <p class="tuan_g_cx">{$oneev56['summary']}</p>
                            </div>
                            <div class="tuan_g_core">
                                <div class="tuan_g_price">
                                    <span>{$oneev56['min_number']}人团</span>
                                    <b>&yen;${moneyit($oneev56['pin_price'])}</b>
                                </div>
                                <div class="tuan_g_btn">去开团</div>
                            </div>
                            <div class="tuan_g_mprice">市场价：
                                <del>&yen;${moneyit($oneev56['market_price'])}</del>
                            </div>
                        </a>
                    </div>
					<!-- {/loop} -->	
					
                </div>
            </div>
        </section>
    </div>
	<div>
		 <div class="center" id="center_pullup" style="display:none;">
		 <span><img class="img_rotate" src="/images/pull_loading_8eba142.png"/>
		 </span><span class="orders_text"></span>
	</div>
	<script>
		var offset = 0;
		var _pa = 2;
		var is_can_next = 1;
		var cur_url = "{$cur_url}";
		function doTouchSlide() {
			var o = $("body").width();
			return $("#slider li").css({
				width: o
			}).find("img").css({
				width: o
			}),
			new TouchSlider("slider", {
				duration: 800,
				interval: 10e3,
				
				direction: 0,
				autoplay: !0,
				align: "center",
				mousewheel: !1,
				mouse: !0,
				fullsize: !1
			})
		}
		$(function(){
			doTouchSlide();
		})
		
		//new TouchSlider("slider",{duration:800,interval:2e3,direction:0,autoplay:!0,align:"center",mousewheel:!1,mouse:!0,fullsize:!1});
		function loaddata()
		{ 
			totalheight = parseFloat($(window).height()) + parseFloat($(window).scrollTop());     //浏览器的高度加上滚动条的高度 

			if ($(document).height() <= totalheight+200)     //当文档的高度小于或者等于总的高度的时候，开始动态加载数据
			{ 
				if(is_can_next == 1)//加载数据
				{
					is_can_next = 0;
					nextpage();
				}
			} 
		} 
		
		function nextpage()
		{	
			var best_url = cur_url+'&page='+_pa;
			$('#center_pullup').show();
			$.ajax(
				{ 
					url: best_url, 
					dataType: 'json', 
					success: function(result){
						if(result.ret>0){
							if(_pa != 1)
							{
								$('#center_pullup').hide();
							}
							//$('.nextpage').hide();	
							return false;
						}
						if(result.offset == offset)
						{
							$('#center_pullup').hide();
							return false;
						} else {
							offset = result.offset;
						}
						$('#tuan_list').append(result.html);
						$('#center_pullup').hide();
						_pa++;
						is_can_next = 1;
					}
				}
			);
		}

		$(function(){
			$(window).scroll( function() { 
				loaddata();
			}); 
			
		})
		</script>

<!--{include footer}-->